//
//  BaseTableViewCell.m
//  HuLaQuan
//
//  Created by hok on 3/16/16.
//  Copyright © 2016 yuwubao. All rights reserved.
//

#import "BaseTableViewCell.h"

@implementation BaseTableViewCell
+ (UINib *)nib
{
    return [UINib nibWithNibName:NSStringFromClass([self class]) bundle:nil];
}

//重写绘制分割线
- (void)drawRect:(CGRect)rect {
    // Drawing code
    UIBezierPath *path = [UIBezierPath bezierPath];
    [path moveToPoint:CGPointMake(0 , self.contentView.bounds.size.height - 1)];
    [path addLineToPoint:CGPointMake([UIScreen mainScreen].bounds.size.width, self.contentView.bounds.size.height - 1 )];
    
    [UIColorFromRGBA(kTableViewSplitLineColor,1.0) setStroke];
    
    [path stroke];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
